home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / NXCursor.h < prev    next >
Text File  |  1992-09-11  |  1KB  |  63 lines

  1. /*
  2.     NXCursor.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <objc/Object.h>
  8. #import "NXImage.h"
  9.  
  10. /* AppKit Cursors */
  11.  
  12. #define    NXarrow    NXArrow
  13. #define    NXiBeam    NXIBeam
  14.  
  15. extern id       NXArrow;     /* Arrow cursor */
  16. extern id       NXIBeam;    /* Text cursor */
  17.  
  18. @interface NXCursor : Object
  19. {
  20.     NXPoint             hotSpot;
  21.     struct _csrFlags {
  22. #ifdef __BIG_ENDIAN__
  23.     unsigned int        onMouseExited:1;
  24.     unsigned int        onMouseEntered:1;
  25.     unsigned int        _RESERVED:14;
  26. #else
  27.     unsigned int        _RESERVED:14;
  28.     unsigned int        onMouseEntered:1;
  29.     unsigned int        onMouseExited:1;
  30. #endif
  31.     }                   cFlags;
  32.     id            image;
  33.     unsigned int    _reservedInt;
  34. }
  35.  
  36. + pop;
  37. + currentCursor;
  38.  
  39. - init;
  40. - initFromImage:newImage;
  41.  
  42. - image;
  43. - setImage:newImage;
  44. - setHotSpot:(const NXPoint *)spot;
  45. - push;
  46. - pop;
  47. - set;
  48. - setOnMouseExited:(BOOL)flag;
  49. - setOnMouseEntered:(BOOL)flag;
  50. - mouseEntered:(NXEvent *)theEvent;
  51. - mouseExited:(NXEvent *)theEvent;
  52. - read:(NXTypedStream *)stream;
  53. - write:(NXTypedStream *)stream;
  54.  
  55. /* 
  56.  * The following new... methods are now obsolete.  They remain in this  
  57.  * interface file for backward compatibility only.  Use Object's alloc method  
  58.  * and the init... methods defined in this class instead.
  59.  */
  60. + newFromImage:newImage;
  61.  
  62. @end
  63.